package lyj.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SentinelController {


    @GetMapping("/testA")
    public String  testA() {
        return "test a";
    }

    @GetMapping("/testB")
    public String  testB() {
        return "test b";
    }


    /**
     * 测试熔断配置
     * @return
     */
    @GetMapping("/testD")
    public String  testD() {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "test d";
    }
}
